package com.andaily.domain.dto.developer;

import com.andaily.domain.developer.BacklogType;
import com.andaily.domain.developer.SprintPriority;
import com.andaily.domain.shared.paginated.DefaultPaginated;

import java.util.Map;

/**
 * Date: 13-9-8
 *
 * @author Shengzhao Li
 */
public class BacklogOverviewDto extends DefaultPaginated<BacklogDto> {

    private SprintPriority priority;
    private BacklogType type;

    public BacklogOverviewDto() {
    }

    public Map<String, Object> queryMap() {
        Map<String, Object> map = super.defaultQueryMap();
        map.put("priority", priority);
        map.put("type", type);
        return map;
    }

    public BacklogType[] getAvailableTypes() {
        return BacklogType.values();
    }

    public SprintPriority[] getAvailablePriorities() {
        return SprintPriority.values();
    }

    public SprintPriority getPriority() {
        return priority;
    }

    public void setPriority(SprintPriority priority) {
        this.priority = priority;
    }

    public BacklogType getType() {
        return type;
    }

    public void setType(BacklogType type) {
        this.type = type;
    }
}
